package com.hualan.service.service.service;

import com.hualan.mapper.CourseLunBoMapper;
import com.hualan.mapper.HotCourseMapper;
import com.hualan.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HotCourseServiceImpl implements HotCourseService{
    @Autowired
    private HotCourseMapper hotCourseMapper;
    @Autowired
    private CourseLunBoMapper courseLunBoMapper;



    public List<HotCourse> findAll() {
        return hotCourseMapper.findAll();
    }


    public List<HotCourse> findById(Integer id) {
        return hotCourseMapper.findById(id);
    }


    public List<HotCourse> findLike(String name) {
        return hotCourseMapper.findLike(name);
    }


    public List<CourseLunBo> lunbotus() {
        return courseLunBoMapper.lunbotus();
    }


    public List<XuZhi> xuzhis(Integer cid) {
        return hotCourseMapper.xuzhis(cid);
    }

    @Override
    public Teachers teacher(Integer id) {
        return hotCourseMapper.teacher(id);
    }

    @Override
    public List<PingJia> pingjia(Integer cid) {
        return hotCourseMapper.pingjia(cid);
    }
}
